import Rrequest from '@/util/Rrequest'

//获取个人信息
export async function getinfo() {
	return Rrequest({
		url: '/user/customer/detail',
		method: 'get',
	})
}

//签到
export async function sign() {
	return Rrequest({
		url: '/task/sign',
		method: 'get',
	})
}

//任务列表
export async function taskList() {
	return Rrequest({
		url: '/task',
		method: 'get'
	})
}

//提现相关
export async function withdrawalabout() {
	return Rrequest({
		url: '/boot/withdrawal/card/deposit',
		method: 'post'
	})
}

//提现
export async function withdrawal(data) {
	return Rrequest({
		url: '/boot/withdrawal/insert',
		method: 'post',
		data: data
	})
}

//添加银行卡
export async function addcard(data) {
	return Rrequest({
		url: '/boot/bankCard/insertBankCard',
		method: 'post',
		data: data
	})
}

//修改银行卡
export async function updateBankCard(data) {
	return Rrequest({
		url: '/boot/bankCard/updateBankCard',
		method: 'put',
		data: data
	})
}

//获取银行卡详情
export async function bankCarddetail(data) {
	return Rrequest({
		url: '/boot/bankCard/detail/' + data,
		method: 'get'
	})
}

//获取银行列表
export async function getbank() {
	return Rrequest({
		url: '/boot/bankIcon/selectBankIcon',
		method: 'get'
	})
}

//我的客户排行
export async function getpai(data) {
	return Rrequest({
		url: '/boot/points/record/invitee/rank',
		method: 'post',
		data: data
	})
}

//获取提现记录
export async function withdrawallist(data) {
	return Rrequest({
		url: '/boot/withdrawal/list',
		method: 'post',
		data: data
	})
}

//余额记录
export async function balancelist(data) {
	return Rrequest({
		url: '/boot/balance/record/page/list',
		method: 'post',
		data: data
	})
}

//个人牛果记录
export async function pointslist(data) {
	return Rrequest({
		url: '/boot/points/record/increase/list',
		method: 'post',
		data: data
	})
}

//个人兑换记录
export async function exchangeslist(data) {
	return Rrequest({
		url: '/boot/points/record/decrease/list',
		method: 'post',
		data: data
	})
}

//俱乐部牛果记录
export async function clubpolist(data) {
	return Rrequest({
		url: '/boot/points/record/club/list',
		method: 'post',
		data: data
	})
}

//我的消息 
export async function messagelist(data) {
	return Rrequest({
		url: '/message/list',
		method: 'post',
		data: data
	})
}

//我的牛果界面信息
export async function exchangeinfo() {
	return Rrequest({
		url: '/boot/points/record/show/exchange',
		method: 'post'
	})
}

//俱乐部牛果
export async function clubpoints() {
	return Rrequest({
		url: '/boot/points/record/club/list',
		method: 'get'
	})
}

//修改昵称
export async function editname(data) {
	return Rrequest({
		url: '/user/customer/name',
		method: 'put',
		data: data
	})
}

//兑换牛角
export async function exbonus(data) {
	return Rrequest({
		url: '/boot/points/record/exchange/bonus',
		method: 'post',
		data: data
	})
}

//兑换秒杀卷
export async function excoupon(data) {
	return Rrequest({
		url: '/boot/points/record/exchange/coupon',
		method: 'post',
		data: data
	})
}

//兑换余额
export async function exbalance(data) {
	return Rrequest({
		url: '/boot/bonus/record/exchange/balance',
		method: 'post',
		data: data
	})
}

//解绑银行卡
export async function deletedBankCard(id) {
	return Rrequest({
		url: '/boot/bankCard/deletedBankCard/' + id,
		method: 'delete'
	})
}

//实名认证
export async function realname(data) {
	return Rrequest({
		url: '/user/customer/name/real',
		method: 'put',
		data: data
	})
}

//vip信息
export async function vipcardinfo() {
	return Rrequest({
		url: '/boot/vip/buy/record/vipcard',
		method: 'get',
	})
}

//余额购买vip
export async function balancevip(data) {
	return Rrequest({
		url: '/boot/vip/buy/record/pay/balance',
		method: 'post',
		data: data
	})
}

//支付宝购买vip
export async function alivip() {
	return Rrequest({
		url: '/boot/vip/buy/record/pay/ali',
		method: 'post'
	})
}

//微信购买vip
export async function wechatvip() {
	return Rrequest({
		url: '/boot/vip/buy/record/pay/weixin',
		method: 'post'
	})
}

//查询支付密码设置状态
export async function checkpass() {
	return Rrequest({
		url: '/user/customer/pay/password/set/verify',
		method: 'put'
	})
}

//设置支付密码
export async function setpass(data) {
	return Rrequest({
		url: '/user/customer/pay/password/set',
		method: 'put',
		data: data
	})
}

//修改支付密码
export async function resetpass(data) {
	return Rrequest({
		url: '/user/customer/pay/password',
		method: 'put',
		data: data
	})
}

//修改支付密码
export async function forpass(data) {
	return Rrequest({
		url: '/user/customer/pay/password/reset',
		method: 'put',
		data: data
	})
}

//校验支付密码 
export async function passwordverify(data) {
	return Rrequest({
		url: '/user/customer/pay/password/verify',
		method: 'post',
		data: data
	})
}

//查询个人收益信息
export async function balanceuserrecord() {
	return Rrequest({
		url: '/boot/balance/record/user',
		method: 'get'
	})
}

//分页查询用户收益
export async function balancerecordlist(data) {
	return Rrequest({
		url: '/boot/balance/record/page/list',
		method: 'post',
		data: data
	})
}

//牛角变动记录
export async function bonusrecordlist(data) {
	return Rrequest({
		url: '/boot/bonus/record/page/list',
		method: 'post',
		data: data
	})
}

//我的佣金
export async function commissionsrecord(data) {
	return Rrequest({
		url: '/commissions/record/sum/' + data,
		method: 'get'
	})
}

//微信授权
export async function loginwx(data) {
	return Rrequest({
		url: '/login/wx',
		method: 'post',
		data: data
	})
}

//绑定微信
export async function loginbind(data) {
	return Rrequest({
		url: '/login/bind',
		method: 'post',
		data: data
	})
}

export async function changerelation(data) {
	return Rrequest({
		url: '/change/relation/' + data,
		method: 'get'
	})
}

export async function bootpointsrecordself(data) {
	return Rrequest({
		url: '/boot/points/record/self',
		method: 'get'
	})
}


export async function commissionsrecordteamlist(data) {
	return Rrequest({
		url: '/commissions/record/team/list',
		method: 'post',
		data
	})
}

export async function customersuperior(data) {
	return Rrequest({
		url: '/user/customer/superior',
		method: 'get'
	})
}